import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ReplayingDecoder;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: xinrong3
 * Date: 14-4-2
 * Time: 下午4:28
 */
public class TimeDecoder extends ReplayingDecoder<VoidEnum> {
    @Override
    protected void decode( ChannelHandlerContext ctx, ByteBuf in, List<Object> out) {
        out.add(in.readBytes(4));
    }
}

enum VoidEnum{

}